import config
from list_view import *


class EncryptView(ListView):
    decryptMenuClicked = pyqtSignal()

    def __init__(self, username):
        self.RootDir = config.RootDir + "/home/" + username
        super().__init__()

    def pop_menu(self, pos):
        menu = QMenu()
        menu.addAction("还原").triggered.connect(self.decryptMenuClicked)
        menu.addAction("删除").triggered.connect(self.delete)
        menu.exec_(QCursor.pos())
